# -*- coding: utf-8 -*-
# 安装命令pip install msedge-selenium-tools
from msedge.selenium_tools import Edge, EdgeOptions


class Options:
    def options_conf(self):
        '''
        配置edge浏览器
        :return:
        '''
        # 设置驱动的位置：webdriver.Edge(executable_path=''.option=option)
        from selenium import webdriver
        options = EdgeOptions()
        options.use_chromium = True
        options.add_argument('headless')
        return options